home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
misc
/
amag
/
sh9301b.lha
/
ARexx-Utilities(S.55)
/
DelRemRX.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-01-12
|
675b
|
35 lines
/* ======= DelRem.rexx ======= */
say " Entfernt alle Kommentare ",
"aus einem ARexx-Programm"
say ""
options prompt " Quell-Datei: "
pull source
options prompt " Ziel-Datei : "
pull target
open(lese,source,"r")
open(sende,target,"w")
/* ARexx-Kennung uebernehmen */
zeile= readln(lese)
writeln(sende,zeile)
do while ~eof(lese)
zeile= readln(lese)
x1=index(zeile,"/*",1)
y1=index(zeile,"*/")
select
when zeile=""then NOP
when x1~=0
then zeile=delstr(zeile,x1)
when y1~=0 & x1=0
then zeile=delstr(zeile,1)
otherwise NOP
end
zeile=trim(zeile)
if zeile ~=""
then writeln(sende,zeile)
end
call close(lese)
call close(sende)
say "READY!"